package Lab02.test20;

import java.util.Scanner;
import java.util.regex.Pattern;

public class Test {
    public static void main(String[] args) {
        Scanner reader = new Scanner(System.in);
        String str = reader.nextLine();
        String regex = "\\D+";
        String words[] = str.split(regex);
        for(int i = 0;i < words.length;i++)
        {
            System.out.println(words[i]);
        }
    }
}
